import {IStateModule} from "rpc_dream_server";

export class StateModuleInMemoryImplementation implements IStateModule {
    private key: string = ""

    async getStateKey(): Promise<string> {
        return this.key
    }

    async setStateKey(key: string): Promise<void> {
        this.key = key;
    }

    async stateRestored(key: string): Promise<void> {
        this.key = key
    }
}

